package com.ruoyi.yipaiju.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.yipaiju.mapper.DiscountHouseBookingorderFollowerMapper;
import com.ruoyi.yipaiju.domain.DiscountHouseBookingorderFollower;
import com.ruoyi.yipaiju.service.IDiscountHouseBookingorderFollowerService;

/**
 * fo_discount_house_bookingorder_followerService业务层处理
 * 
 * @author liuwp
 * @date 2023-03-01
 */
@Service
public class DiscountHouseBookingorderFollowerServiceImpl implements IDiscountHouseBookingorderFollowerService 
{
    @Autowired
    private DiscountHouseBookingorderFollowerMapper discountHouseBookingorderFollowerMapper;

    /**
     * 查询fo_discount_house_bookingorder_follower
     * 
     * @param id fo_discount_house_bookingorder_follower主键
     * @return fo_discount_house_bookingorder_follower
     */
    @Override
    public DiscountHouseBookingorderFollower selectDiscountHouseBookingorderFollowerById(Long id)
    {
        return discountHouseBookingorderFollowerMapper.selectDiscountHouseBookingorderFollowerById(id);
    }

    /**
     * 查询fo_discount_house_bookingorder_follower列表
     * 
     * @param discountHouseBookingorderFollower fo_discount_house_bookingorder_follower
     * @return fo_discount_house_bookingorder_follower
     */
    @Override
    public List<DiscountHouseBookingorderFollower> selectDiscountHouseBookingorderFollowerList(DiscountHouseBookingorderFollower discountHouseBookingorderFollower)
    {
        return discountHouseBookingorderFollowerMapper.selectDiscountHouseBookingorderFollowerList(discountHouseBookingorderFollower);
    }

    /**
     * 根据业务主键查询一条记录：fo_discount_house_bookingorder_follower
     *
     * @param discountHouseBookingorderFollower fo_discount_house_bookingorder_follower
     * @return fo_discount_house_bookingorder_follower
     */
    @Override
    public DiscountHouseBookingorderFollower selectOneDiscountHouseBookingorderFollower(DiscountHouseBookingorderFollower discountHouseBookingorderFollower)
    {
        return discountHouseBookingorderFollowerMapper.selectOneDiscountHouseBookingorderFollower(discountHouseBookingorderFollower);
    }

    /**
     * 新增fo_discount_house_bookingorder_follower
     * 
     * @param discountHouseBookingorderFollower fo_discount_house_bookingorder_follower
     * @return 结果
     */
    @Override
    public int insertDiscountHouseBookingorderFollower(DiscountHouseBookingorderFollower discountHouseBookingorderFollower)
    {
        discountHouseBookingorderFollower.setCreateTime(DateUtils.getNowDate());
        return discountHouseBookingorderFollowerMapper.insertDiscountHouseBookingorderFollower(discountHouseBookingorderFollower);
    }

    /**
     * 修改fo_discount_house_bookingorder_follower
     * 
     * @param discountHouseBookingorderFollower fo_discount_house_bookingorder_follower
     * @return 结果
     */
    @Override
    public int updateDiscountHouseBookingorderFollower(DiscountHouseBookingorderFollower discountHouseBookingorderFollower)
    {
        discountHouseBookingorderFollower.setUpdateTime(DateUtils.getNowDate());
        return discountHouseBookingorderFollowerMapper.updateDiscountHouseBookingorderFollower(discountHouseBookingorderFollower);
    }

    @Override
    public int updateDiscountHouseBookingorderFollowerCondition(DiscountHouseBookingorderFollower discountHouseBookingorderFollower, DiscountHouseBookingorderFollower discountHouseBookingorderFollowerCondition)
    {
                discountHouseBookingorderFollower.setUpdateTime(DateUtils.getNowDate());
        return discountHouseBookingorderFollowerMapper.updateDiscountHouseBookingorderFollowerCondition(discountHouseBookingorderFollower, discountHouseBookingorderFollowerCondition);
    }

    /**
     * 批量删除fo_discount_house_bookingorder_follower
     * 
     * @param ids 需要删除的fo_discount_house_bookingorder_follower主键
     * @return 结果
     */
    @Override
    public int deleteDiscountHouseBookingorderFollowerByIds(Long[] ids)
    {
        return discountHouseBookingorderFollowerMapper.deleteDiscountHouseBookingorderFollowerByIds(ids);
    }

    /**
     * 删除fo_discount_house_bookingorder_follower信息
     * 
     * @param id fo_discount_house_bookingorder_follower主键
     * @return 结果
     */
    @Override
    public int deleteDiscountHouseBookingorderFollowerById(Long id)
    {
        return discountHouseBookingorderFollowerMapper.deleteDiscountHouseBookingorderFollowerById(id);
    }

    /**
     * 条件删除fo_discount_house_bookingorder_follower
     *
     * @param discountHouseBookingorderFollower fo_discount_house_bookingorder_follower
     * @return 结果
     */
    @Override
    public int deleteDiscountHouseBookingorderFollowerByCondition(DiscountHouseBookingorderFollower discountHouseBookingorderFollower)
    {
        return discountHouseBookingorderFollowerMapper.deleteDiscountHouseBookingorderFollowerByCondition(discountHouseBookingorderFollower);
    }

}
